﻿namespace AnyOffice.Model
{
    using System;

    public class ProjectCommentData
    {
        protected object _attachmentId;
        protected int _commentId = -1;
        protected object _content;
        protected string _createor = string.Empty;
        protected DateTime _createTime = DateTime.Now;
        protected int _taskId;

        public string AttachmentId
        {
            get
            {
                return (string) this._attachmentId;
            }
            set
            {
                this._attachmentId = value;
            }
        }

        public bool AttachmentIdIsNull
        {
            get
            {
                return (this._attachmentId == null);
            }
            set
            {
                if (value)
                {
                    this._attachmentId = null;
                }
            }
        }

        public int CommentId
        {
            get
            {
                return this._commentId;
            }
            set
            {
                this._commentId = value;
            }
        }

        public string Content
        {
            get
            {
                return (string) this._content;
            }
            set
            {
                this._content = value;
            }
        }

        public bool ContentIsNull
        {
            get
            {
                return (this._content == null);
            }
            set
            {
                if (value)
                {
                    this._content = null;
                }
            }
        }

        public string Createor
        {
            get
            {
                return this._createor;
            }
            set
            {
                this._createor = value;
            }
        }

        public DateTime CreateTime
        {
            get
            {
                return this._createTime;
            }
            set
            {
                this._createTime = value;
            }
        }

        public int TaskId
        {
            get
            {
                return this._taskId;
            }
            set
            {
                this._taskId = value;
            }
        }
    }
}

